
package cn.hz.horse.ext;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
 

import cn.hz.horse.EzHandle;

public class MyBatchHandle extends EzHandle  {
 
	
	public boolean handle(Object obj){
	   
		//System.out.println("XXXXXX  "+obj);
		BatCnter bt=(BatCnter)obj;
		//System.out.println("XXXXXX  "+bt.getEs().size());
		boolean f=false;
		try{
			f=EsClient.puts(bt.getEs());
		}catch(Exception e){
			e.printStackTrace();
		}
		if(f){
			succQu.add(obj);
		}
		
		return true;
	}
	
	public boolean handleList(List<Object> list){
		 
				
		return true;
	}
}
